package bb.lanxing.lib.devices.ble.ble.services;

//import com.alipay.sdk.packet.d;
import bb.lanxing.lib.devices.ble.ble.base.BaseBleSensorDevice;
import bb.lanxing.lib.devices.ble.ble.base.BaseBleService;
import bb.lanxing.lib.devices.ble.ble.characteristic.radar.RadarMeasurementCharacteristics;
import java.util.UUID;

import bb.lanxing.lib.devices.ble.device.LightDevice;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.jvm.internal.Intrinsics;

public final class RadarService extends BaseBleService {
    private RadarMeasurementCharacteristics radarMeasurementCharacteristics;

    public RadarService(LightDevice device) {
        super(device);
//        Intrinsics.checkNotNullParameter(device, "device");
    }

    public RadarMeasurementCharacteristics getRadarMeasurementCharacteristics() {
        return this.radarMeasurementCharacteristics;
    }

    public void setRadarMeasurementCharacteristics(RadarMeasurementCharacteristics radarMeasurementCharacteristics) {
        this.radarMeasurementCharacteristics = radarMeasurementCharacteristics;
    }

    @Override
    public UUID targetUUID() {
        UUID fromString = UUID.fromString("6A4E3200-667B-11E3-949A-0800200C9A66");
//        Intrinsics.checkNotNullExpressionValue(fromString, "fromString(BLEAttributes.BLE_LIGHT_RADAR_SERVICE)");
        return fromString;
    }

    @Override
    public Object initialization(Continuation<? super Unit> continuation) {
        RadarMeasurementCharacteristics radarMeasurementCharacteristics = new RadarMeasurementCharacteristics(this);
        radarMeasurementCharacteristics.enableNotify();
        this.radarMeasurementCharacteristics = radarMeasurementCharacteristics;
        return Unit.INSTANCE;
    }
}
